import 'package:riverpod_annotation/riverpod_annotation.dart';

part 'home_provider.g.dart';

@Riverpod(keepAlive: true)
class HomeTabState extends _$HomeTabState {
  @override
  int build() => 0; // 默认选中第一个 Tab（设备列表）

  void selectTab(int index) {
    state = index;
  }
}
